	<?php $this->load->view('admin/partials/general_menu'); ?>
	
	<h3><?php echo lang('dataman.general.city'); ?></h3>
	<?php $buttons = array('buttons'=>array('save#city_save();') );?>
	<?php $this->load->view('admin/partials/buttons', $buttons ); ?>
	
	<table border="0" class="table-list">
		<thead>
			<tr>
				<th><?php echo lang('dataman.tbl.field'); ?></th>
				<th><?php echo lang('dataman.tbl.value'); ?></th>
			</tr>
		</thead>
		<?php 
			$options = array();
			$options[0] = '';
			foreach ( $array_items['country'] as $obj ){
				$options[$obj->id] = $obj->name ;
			}
		?>	
		<tbody>
			<tr>
				<td><?php echo lang('dataman.general.city.name'); ?></td>
				<td>
					<?php echo form_input('name',$array_items['city'][0]->name,'maxlength="100" size="50" id="name"');?>	
				</td>
			</tr>
			<tr>
				<td><?php echo lang('dataman.general.city.code'); ?></td>
				<td>
					<?php echo form_input('code',$array_items['city'][0]->code,'maxlength="100" size="50" id="code"');?>	
				</td>
			</tr>
			<tr>
				<td><?php echo lang('dataman.general.country'); ?></td>
				<td>
					<?php echo form_dropdown( 'country_id', $options, array( $array_items['city'][0]->country_id ),'id="country_id"' ); ?>	
				</td>
			</tr>
			<input type="hidden" id="city_id" value="<?php echo $array_items['city'][0]->id;?>" />
		</tbody>
	</table>


